<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>双向绑定指令</title>
</head>
<body>
  <div id="app">
    <p>用户名是：{{username}}</p>
    <input type="text" v-model="username">
    <br>
    <p>省份是:{{province}}</p>
    <select v-model="province">
      <option value="">请选择</option>
      <option value="1">张家口</option>
      <option value="2">北京</option>
    </select>
  </div>
  <script src="./code/lib/vue-2.6.12.js"></script>
  <script>
    const vm=new Vue({
      el:'#app',
      data:{
        username:'zs',
        province:''
      },
      methods: {
        
      },
    })
  </script>
</body>
</html>